Blockly.Blocks.comments = {
  init: function () {
    this.appendDummyInput().appendField('comments').appendField(new Blockly.FieldTextInput('hello'), 'comments')
    this.setPreviousStatement(true, null)
    this.setNextStatement(true, null)
    this.setColour(210)
    this.setTooltip('pass关键词')
    this.setHelpUrl('')
  }
}

Blockly.Python.comments = function (block) {
  const comments = block.getFieldValue('comments')
  const code = '# ' + comments + '\n'
  return code
}
